<?php
namespace app\common\validate;
use think\Validate;

class TestModel extends Validate
{
	protected $rule = [
		'title' => 'require',
		'content' => 'require',
		'show_time' => 'require',
	];

	protected $message  = [
		'title.require' => '标题一定需要填写！',
		'content.require' => '文章内容一定需要填写！',
		'show_time.require' => '展示时间一定需要填写！',
	];

}